package com.openbravo.pos.util;

public class StringParser
{
  private int currentPosition;
  private int maxPosition;
  private String str;

  public StringParser(String paramString)
  {
    this.str = paramString;
    this.currentPosition = 0;
    this.maxPosition = (paramString == null ? 0 : paramString.length());
  }

  public String nextToken(char paramChar)
  {
    if (this.currentPosition < this.maxPosition)
    {
      int i = this.currentPosition;
      while ((this.currentPosition < this.maxPosition) && (paramChar != this.str.charAt(this.currentPosition)))
        this.currentPosition += 1;
      if (this.currentPosition < this.maxPosition)
        return this.str.substring(i, this.currentPosition++);
      return this.str.substring(i);
    }
    return "";
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.util.StringParser
 * JD-Core Version:    0.6.0
 */